<?php

namespace App\Http\Controllers\Admin;

use App;
use http\Env\Response;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use App\Http\Controllers\Controller as BaseController;
use App\Http\Logic\Admin\MenusLogic;
use App\Common\Status;

class MenusController extends BaseController
{
    /**
     * @return \Illuminate\Http\JsonResponse
     */
    public function menusByAdmin()
    {
        $admin   = new AuthController();
        $adminId = $admin->getAdminInfo();
        $menus   = MenusLogic::getMenus($adminId);
        return response()->json($menus);
    }
}
